package com.nercel.dsj.gksales.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.nercel.dsj.gksales.model.PayServiceType;
import com.nercel.dsj.gksales.model.PayType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 充值记录
 * @author sunlin
 *
 */
@Data
public class Payment {
	
    @ApiModelProperty(value = "ID")
    private Integer id;
	
    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "用户PHONE")
    private String userPhone;

    @ApiModelProperty(value = "经理PHONE")
    private String salesPhone;

    @ApiModelProperty(value = "金额(单位分)")
    private Integer amount;

    @ApiModelProperty(value = "数量")
    private Integer count;

    @ApiModelProperty(value = "支付类型")
    private PayType type;

    @ApiModelProperty(value = "支付状态")
    private Boolean successful;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;

    @ApiModelProperty(value = "支付时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payedTime;

    @ApiModelProperty(value = "第三方支付流水编号")
    private String payedNumber;

    @ApiModelProperty(value = "支付定单号")
    private String orderNumber;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "业务类型")
    private PayServiceType serviceType;

    @ApiModelProperty(value = "扩展数据")
    private String data;

    @ApiModelProperty(value = "扩展数据1")
    private String value1;

    @ApiModelProperty(value = "扩展数据2")
    private String value2;

    @ApiModelProperty(value = "扩展数据3")
    private String value3;

    @ApiModelProperty(value = "扩展数据4")
    private String value4;

    @ApiModelProperty(value = "扩展数据5")
    private String value5;

    @ApiModelProperty(value = "扩展数据6")
    private String value6;

}
